package pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;




public class League implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4801905469968924467L;
	

    private int leagueId;
	

	private String name;
	

	private Reward reward;
	

    private Date startDate;


    private Date endDate;
	

	private Set<Competition> competitionsForLeague = new HashSet<Competition>();
    

    private Set<UserAccount> players = new HashSet<UserAccount>();
	
	public League() {}
	
	public League(int id) {
		this.leagueId = id;
	}
	
	public League(String name, Reward reward, Date startDate, Date endDate) {
		this.name = name;
		this.reward = reward;
		this.startDate = startDate;
		this.endDate = endDate;
	}

	public int getLeagueId() {
		return leagueId;
	}

	public void setLeagueId(int leagueId) {
		this.leagueId = leagueId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Reward getReward() {
		return reward;
	}

	public void setReward(Reward reward) {
		this.reward = reward;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}


	
	
}
